package com.codi.bus.core.dao;

import com.codi.base.dao.BaseDAO;
import com.codi.base.dao.v2.GeneratedBaseDao;
import com.codi.bus.core.domain.FundWarehouseTransfer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

/**
 * 亲，写个类注释呗
 *
 * @author wangzhenhao
 * @date 2018-01-25 20:45
 */
public interface FundWarehouseTransferDao extends BaseDAO<FundWarehouseTransfer> {
    Page<FundWarehouseTransfer> queryByPage(Pageable pageable);

    int addFundWarehouseTransfer(FundWarehouseTransfer transfer);

    FundWarehouseTransfer selectOne(Long warehouseId);

    int deleteByKey(Long warehouseId);

    int updateOne(FundWarehouseTransfer transfer);

    List<FundWarehouseTransfer> queryByCombinationCode(String combinationCode);

    FundWarehouseTransfer queryOneByCombinationCode(String combinationCode);

    /**
     * 根据开始和结束时间查询是否可调仓
     *
     * @param portfolioCode 组合编号
     */
    List<FundWarehouseTransfer> queryByTime(String portfolioCode);

    /**
     * 获取可以发送短信的调仓信息
     */
    List<FundWarehouseTransfer> getPortfolioTransferSms();
}
